﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="CWB.Web.Models.Configuration" %>
<%@ Import Namespace="CWB.Web.Configuration" %>
    <select name="SelectLanguage" id="SelectLanguage">
    <%
        foreach (LanguageInfo li in AppConfigManager.LanguageInfos)
        {
            string selected = string.Empty;
            if (ViewData["_cul"] == li.CultureName)
            {
                selected = " selected";
            }
            else
            {
                selected = string.Empty;
            }
            Response.Write(string.Format("<option value=\"{0}\"{1}>{2}</option>", li.CultureName, selected, li.DisplayName));
        }
    %>
    </select>

